﻿namespace BP.Plugin.Monitor.Domain.Entities;

public class OnlineUser
{
    public long Id { get; set; } // 主键，自增
    public Guid? UserId { get; set; }
    public string? UserName { get; set; } = default!;
    public string? IP { get; set; } = default!;
    public string? Address { get; set; } = default!;
    public string? System { get; set; } = default!;
    public string? Browser { get; set; } = default!;
    public DateTimeOffset? LoginTime { get; set; } = DateTime.UtcNow; // 登录时间
    public DateTimeOffset? LastActiveTime { get; set; } = DateTime.UtcNow; // 最后活跃时间
    public bool IsOnline { get; set; } = true; // 是否在线
    public bool? IsKicked { get; set; } // 是否被踢
    public string? KickedByUserName { get; set; }
    public DateTimeOffset? KickedAt { get; set; }      // 踢出时间
    public int? Status { get; set; }
    public string? Behavior { get; set; }
    public string? Description { get; set; }
}
